package com.ljf;

import com.ljf.listener.LjfCreatedEvent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SupermarketApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SupermarketApplication.class, args);
        context.publishEvent(new LjfCreatedEvent(new Object(),"create success"));
    }
}
